@extends('admin.common.base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />

@endsection

@section('html-body')
    <div id="content">
        <!-- cur-position start -->
        <div id="cur-position">
            <span class="tit">当前位置：</span>
            <a href="#">支付信息列表</a>
        </div>

        <div class="table-box">
            <table class="table">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>手机号</th>
                    <th>订单编号</th>
                    <th>订单原总额</th>
                    <th>订单实际总额</th>
                    <th>是否支付</th>
                    <th>支付时间</th>
                    <th>支付方式</th>
                    <th>发票信息id</th>
                    <th>配送单号</th>
                    <th>快递公司</th>
                    <th>快递费用</th>
                    <th>发货时间</th>
                    <th>配送地址id</th>
                    <th>备注</th>
                    <th>订单状态</th>
                </tr>
                </thead>
                <tbody>
                @if(count($orders)>0)
                @foreach($orders as $order)
                    <tr id="banner_{{$order->id}}">
                        <td>{{$order->id}}</td>
                        <td>{{$order->phone}}</td>
                        <td>{{$order->order_num}}</td>
                        <td>{{$order->m_amount}}</td>
                        <td>{{$order->s_amount}}</td>
                        <td>
                            @if($order->ispay == 0)
                                未支付
                            @else
                                已支付
                            @endif
                        </td>
                        <td>{{$order->paytime}}</td>
                        <td>{{$order->pay_type}}</td>
                        <td>{{$order->invoice_id}}</td>
                        <td>{{$order->express_num}}</td>
                        <td>{{$order->express}}</td>
                        <td>{{$order->express_fee}}</td>
                        <td>{{$order->express_time}}</td>
                        <td>{{$order->address_id}}</td>
                        <td>{{$order->note}}</td>
                        <td>
                            @if($order->status == 0)
                                未确认
                            @elseif($order->status == 1)
                                确认订单
                            @elseif($order->status == 2)
                                商家已确认
                            @elseif($order->status == 3)
                                已发货
                            @elseif($order->status == 4)
                                已收货并完成
                            @elseif($order->status == 5)
                                关闭交易
                            @elseif($order->status == 6)
                                退货处理
                            @endif
                        </td>
                    </tr>
                @endforeach
                @endif
                </tbody>
            </table>
        </div>
        <div class="pagelist" style="text-align: center;">
            <?php echo $orders->render(); ?>
        </div>
    </div>
@endsection